# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtkspell3
pkgver=3.0.10
pkgrel=3
pkgdesc="rovides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget"
url="https://gtkspell.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="enchant2-dev gtk+3.0-dev vala gobject-introspection-dev
	automake autoconf libtool intltool gtk-doc"
options="!check" # no tests
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/gtkspell/gtkspell3-$pkgver.tar.xz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--target=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="3b1ceaa9ffa06bd3f6dae39c95db951588e5cf2edf4f551cac6972822ba230af3415c5045fa24f7a4dfe05c2e386ab3f67cb80cb779576b4e54293b7b9fbc28e  gtkspell3-3.0.10.tar.xz"
